package gao.xaiolei.enity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Entity
@Data
@Table(name = "task_view")
public class TaskView {

	@Id
	// 添加一个空的id标识，因为jpa在映射实体是需要一个id，这个必须
	// 任务ID
	@Column(name = "TASK_ID", nullable = false, columnDefinition = "char(32)")
	private String id;

	// 任务名字
	@Column(name = "TASK_NAME", nullable = false)
	private String name;

	// 任务发起人
	@Column(name = "TASK_RESPONSIBLE", nullable = false, columnDefinition = "char(32)")
	private String responsible;

	// 任务接受是不是组级别的,0否,1是
	@Column(name = "ISGROUP", nullable = false)
	private Integer isGroup;

	// 任务详述、备注
	@Column(name = "TASK_DESCRIPTION")
	private String description;

	// 是否有附件(0为无,1为有)
	@Column(name = "TASK_ATTACHMENT")
	private Integer isAttachment;

	// 任务创建日期
	@Column(name = "TASK_CREATION_DATE")
	private LocalDateTime createDate;

	// 任务类型名字
	@Column(name = "TASK_TYPE_NAME", nullable = false)
	private String typeName;

	// 状态名字
	@Column(name = "STATUS_NAME", nullable = false)
	private String statusName;

	// 任务优先级名字
	@Column(name = "PRIORITY_NAME", nullable = false)
	private String priorityName;

	public TaskView() {
	}


}
